cmake_minimum_required(VERSION 3.18)

project(Tutorial VERSION 1.0)

# project这一句会生成变量${project_name}_VERSION_MAJOR和${project_name}_VERSION_MINOR
message(STATUS "Tutorial_VERSION_MAJOR = ${Tutorial_VERSION_MAJOR}")
message(STATUS "Tutorial_VERSION_MAJOR = ${Tutorial_VERSION_MINOR}")

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

configure_file(TutorialConfig.h.in TutorialConfig.h)

include_directories(${CMAKE_SOURCE_DIR}/build)

add_executable(Tutorial tutorial.cxx)
